

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Yozeev.BusinessLogic;

namespace Yozeev.EntityMapper.TicketStations
{
    public class TicketStationCfg : IEntityTypeConfiguration<TicketStation>
    {
        public void Configure(EntityTypeBuilder<TicketStation> builder)
        {

            builder.ToTable("TicketStations", YoYoAbpefCoreConsts.SchemaNames.Ticket);

            
			builder.Property(a => a.ScenicSpotId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			//builder.Property(a => a.ScenicSpot).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.StationName).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.Remand).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);


        }
    }
}


